using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AjaxControlToolkit.HTMLEditor.ToolbarButton;

namespace AjaxControlToolkit.Models.MSTest.HTMLEditor.ToolbarButton
{
	
	public partial class DesignModeBoxButtonTests
	{


		
		
    	[TestMethod]
        public void DesignModeBoxButtonTests_Memory_Default()
		{

            AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignModeBoxButton objectUnderTest;

			try
			{
				objectUnderTest = new AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignModeBoxButton();
			}
			catch (ArgumentException)
			{
				//OK
                return;
			}

            
        	var wr = new WeakReference(objectUnderTest);

			//release strong references
            objectUnderTest = null;
			
            GC.Collect();
			GC.WaitForPendingFinalizers();
			GC.Collect();

			//verify the object was collected
			Assert.IsFalse(wr.IsAlive);		
		}
				
			
	}
}

